<div class="title"><span>Add customer</span> <div class="clear">&nbsp;</div></div>

<div class="margin">
<?php flash(); //display flash data ?>

<?php echo form_open('admin/add_customer'); ?>

<div class="input-block"><?php f_input('username');?></div>
<div class="input-block"><?php f_input('password', '', 'password');?></div>
<div class="input-block"><?php f_input('firstname'); ?></div>
<div class="input-block"><?php f_input('lastname'); ?></div>
<div class="input-block"><?php f_input('contact'); ?></div>
<div class="input-block"><?php f_input('email'); ?></div>
<?php echo form_hidden('usertype', 'customer');?>
<?php echo form_submit(array('name' => 'add_customer', 'value' => 'Add customer', 'class' => 'fbtn add'));?>

<?php echo form_close();?>

<a href="<?php echo site_url('admin/customers/')?>" class="back-btn"><span>Back</span></a>
</div>